<?php
$this->breadcrumbs = array(
    'Senha Temporária',
);
?>

<h1>Senha Temporária</h1>

<?php echo $this->renderPartial('../layouts/mensagemErro', array('model' => $model)); ?>

<div class="form">

    <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'senha-temporaria-form',
            'enableClientValidation'=>true,
            'clientOptions'=>array(
                'validateOnSubmit'=>true,
            ),
        ));
    ?>
    <p class="note">Campos com <span class="required">*</span> são obrigatórios.</p>

    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->labelEx($model, 'email'); ?>
        <?php echo $form->textField($model, 'email', array('size' => 20, 'maxlength' => 50)); ?>
        <span>@inf.ufrgs.br</span>
        <?php echo $form->error($model, 'email'); ?>
    </div>
    <div class="row">
            <?php echo $form->labelEx($model,'verifyCode'); ?>
            <div>
            <?php $this->widget('CCaptcha'); ?>
            <br><?php echo $form->textField($model,'verifyCode', array('size' => 15)); ?>
            </div>
            <div class="hint">Por favor, entre com as letras mostradas na imagem acima.
            </div>
            <?php echo $form->error($model,'verifyCode'); ?>
    </div>
    <div class="row buttons">
        <?php echo CHtml::submitButton('Enviar'); ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->